<template>
  <app-page>
    <div class="main">
      <Menu :menus="menus" @change="handleMenuChange" />
      <List :activemenus="activemenus"/>
    </div>
  </app-page>
</template>

<script setup>
import Menu from './components/Menu.vue'
import List from './components/List.vue'

const userStore = useUserStore()

const menus = ref([
  {
    label: '来源管理',
    value: 'source',
  },
  {
    label: '分组管理',
    value: 'grouping',
  },
  {
    label: '登录管理',
    value: 'login',
  },
])

const activemenus = ref({})

const handleMenuChange = selectedValue => {
  activemenus.value = selectedValue
}
</script>

<style lang="scss" scoped>
.main {
  width: 100%;
  height: 100%;
  //   background-color: #fff;
  display: flex;
  // padding: 40px 0;
  //   justify-content: center;
}
</style>